package com.tang.model.singleton;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/15 16:37
 * @Desc
 * @Remarks
 */
public class Test {
    public static void main(String[] args) {
//        SingletonB singletonB = SingletonB.getInstance();
//        SingletonB singletonB2 = SingletonB.getInstance();
//        System.out.println(singletonB == singletonB2);

        SingletonA singletonB = SingletonA.getInstance();
        SingletonA singletonB2 = SingletonA.getInstance();
        System.out.println(singletonB == singletonB2);
    }
}
